import request from '@/utils/request'

// 查询列表
export function GetListAPI(params) {
  return request({
    url: '/equipment/maintenance-plan/list',
    method: 'GET',
    params
  })
}

// 新增
export function AddDataAPI(data) {
  return request({
    url: '/equipment/maintenance-plan/add',
    method: 'POST',
    data
  })
}

// 修改
export function EditDataAPI(data) {
  return request({
    url: '/equipment/maintenance-plan/updatePlan',
    method: 'PUT',
    data
  })
}

// 查询单个
export function GetDeiltsAPI(params) {
  return request({
    url: '/equipment/maintenance-plan/getView/' + params,
    method: 'GET'
  })
}

// 删除单个
export function DelDataAPI(params) {
  return request({
    url: '/equipment/maintenance-plan/removePlan/' + params,
    method: 'DELETE'
  })
}

// 启用
export function EnableAPI(params) {
  return request({
    url: '/equipment/maintenance-plan/enable/' + params,
    method: 'GET'
  })
}

// 停用
export function StopAPI(params) {
  return request({
    url: '/equipment/maintenance-plan/stop/' + params,
    method: 'GET'
  })
}
